package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Like;
import java.util.List;

public interface LikeMapper {

    int insert(Like record);

    List<Like> selectByAuthorId(Long id);

    List<Like> selectAll();

    int updateByPrimaryKey(Like record);

    Like checkLike(Like like);

    void deleteLike(Like like);

    int getNoReadLikeByAuthorId(Long id);

    void setLikeHasReadByAuthorId(Long id);
}